package com.core.model.user;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

/**
 * Created with IntelliJ IDEA.
 * User: sunk
 * Date: 14-12-26
 * Time: 上午10:07
 * To change this template use File | Settings | File Templates.
 */
@Entity
@DiscriminatorValue(value = "CUSTOMER")
public class Customer extends User {

    public Customer() {
    }

    public Customer(String phoneNum, String password) {
        super(phoneNum, password);
    }

    public Customer(String username, String password, String activate) {
        super(username, password, activate);
    }

    @Override
    public boolean isCustomer() {
        return true;
    }

}
